﻿<UserControl
    x:Class="CrateMayhem.WinRT.Options"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="600"
    d:DesignWidth="400">

    <UserControl.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="FontSize" Value="15"/>
            <Setter Property="Padding" Value="10"/>
        </Style>
    </UserControl.Resources>
    <StackPanel Orientation="Vertical" Background="{StaticResource DialogBackgroundBrush}">
        <StackPanel Orientation="Horizontal" Background="{StaticResource DisabledGameButtonBorderBrush}">
            <TextBlock Text="Options" Style="{StaticResource GameTextBlockStyle}"/>
        </StackPanel>
        <TextBlock>
            You can control the worker with the keyboard:
        </TextBlock>
        <TextBlock>
            Use the arrow keys to push the crates around.
        </TextBlock>
        <TextBlock>
            The <Run FontWeight="Bold">r</Run> key is used to retry a game.
        </TextBlock>
        <Button 
            Margin="0,50,0,50"
            Padding="10"
            HorizontalAlignment="Center"
            Content="Switch Controls Layout"
            Command="{Binding SwitchControlsCommand}"/>
        <Button 
            Padding="10"
            HorizontalAlignment="Center"
            Content="Reset to level 1 [deletes all data]"
            Command="{Binding ResetLevelsCommand}"/>
    </StackPanel>
</UserControl>
